import { ITheme } from '@/interface';
import { $get, $post, $put, $delete } from '@/request/api';

export function fetchThemeList(params) {
  return $get('/theme/list', params);
}

export function fetchCreateTheme(data: ITheme) {
  return $post('/theme/create', data);
}
export function fetchUpdateTheme(data: ITheme) {
  return $put(`/theme/update/${data.id}`, data);
}
export function fetchDeleteTheme(id: number) {
  return $delete(`/theme/delete/${id}`);
}
